<%--
  Created by IntelliJ IDEA.
  User: ttxs
  Date: 2023/7/31
  Time: 8:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>添加</h1>
<form action="${pageContext.request.contextPath}/users?opr=add" method="post">
<table>
    <tr>
        <td>账号</td>
        <td><input name="account"></td>
    </tr>
    <tr>
        <td>昵称</td>
        <td><input name="realName"></td>
    </tr>
    <tr>
        <td>角色</td>
        <td>
            <select name="roleId">
                <option value="">请选择</option>
                <c:forEach var="item" items="${roleList}">
                    <option value="${item.id}">${item.roleName}</option>
                </c:forEach>
            </select>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <input value="添加" type="submit">
            <input value="返回" type="button" onclick="location.href='${pageContext.request.contextPath}/users?opr=list'">
        </td>
    </tr>
</table>
</form>
</body>
</html>
